<template>
    <div id="UserIndex">
        <el-carousel :interval="5000" arrow="always">
            <el-carousel-item v-for="item in 4" :key="item">
                <h3>{{ item }}</h3>
            </el-carousel-item>
        </el-carousel>
        <el-card shadow="hover" class="box-card" v-show="cardShow"
                 style="position: absolute; top: 20%; right: 33%; z-index: 1005">
            <div slot="header" class="clearfix">
                <span>联系方式</span>
                <el-button style="float: right; padding: 3px 0" type="text" @click="cardShow=false">我是管理员，去登录
                </el-button>
            </div>
            <div style="text-align: center">
<!--                <img src="../image/wx.jpg" alt="">-->
                反馈邮箱：1263375216@qq.com
            </div>

        </el-card>
    </div>
</template>

<script>
    export default {
        name: "UserIndex",
        data() {
            return {
                cardShow: false,
            }
        },
        created() {
            this.returnWelcom();
        },
        methods: {
            // returnWelcom(){
            //     this.cardShow = true;
            //     alert("该系统未向普通用户开发，请联系站长！")
            //     if (this.cardShow != true){
            //         this.$router.push({path: '/welcome'});
            //     }
            // },
            returnWelcom() {
                alert("该系统未向普通用户开发，请联系站长！");
                this.$router.push({path: '/welcome'});
            }
        }
    }
</script>

<style lang="scss">
    #UserIndex {
        .text {
            font-size: 14px;
        }

        .item {
            padding: 18px 0;
        }

        .box-card {
            width: 480px;
        }

        .el-image__inner {
            vertical-align: bottom;
        }

        .el-carousel__item h3 {
            color: #475669;
            font-size: 18px;
            opacity: 0.75;
            line-height: 300px;
            margin: 0;
        }

        .el-carousel__item:nth-child(2n) {
            background-color: #99a9bf;
        }

        .el-carousel__item:nth-child(2n+1) {
            background-color: #d3dce6;
        }
    }
</style>